
<!-- 上传控件开始 -->
<link href="./uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="./swfobject.js"></script>
<script type="text/javascript" src="./jquery.uploadify.js"></script>
<script type="text/javascript">
$(document).ready(function() {	
	$('#file_upload').uploadify({
	'uploader'  : 'uploadify.php',
	'swf'       : './uploadify.swf',
	'cancelImage' : './uploadify-cancel.png',
	'auto'      : true,
	
	'buttonText': '点击上传',
	
	'onUploadSuccess'  : function(file,data,response) {   $("#file_image").val(data) }  
	});
});
</script>

<input id="file_upload" name="file_upload" type="file" />
<a href="javascript:$('#file_upload').uploadifyUpload()">上传</a>
<input type="text" id="file_image" />
<!-- 上传控件结束 -->
